
message ("-- Looking for CEGUI")

find_path (CEGUI_INCLUDE_DIR
            NAMES CEGUI.h
            HINTS /usr/include/CEGUI
            PATHS /usr/include/CEGUI
            PATH_SUFFIXES /usr/include/CEGUI
            )

find_library (CEGUI_BASE_LIBRARY
              NAMES CEGUIBase
              )

find_library (CEGUI_DEVILCODEC_LIBRARY
              NAMES CEGUIDevILImageCodec
              )
find_library (CEGUI_OPENGLRENDERER_LIBRARY
              NAMES CEGUIOpenGLRenderer
              )


set (CEGUI_FOUND "NO")

if (CEGUI_BASE_LIBRARY)
  set (CEGUI_LIBRARIES ${CEGUI_LIBRARIES} ${CEGUI_BASE_LIBRARY})
  set (CEGUI_FOUND "YES")
endif()

if (CEGUI_DEVILCODEC_LIBRARY)
  set (CEGUI_LIBRARIES ${CEGUI_LIBRARIES} ${CEGUI_DEVILCODEC_LIBRARY})
endif()

if (CEGUI_OPENGLRENDERER_LIBRARY)
  set (CEGUI_LIBRARIES ${CEGUI_LIBRARIES} ${CEGUI_OPENGLRENDERER_LIBRARY})
endif()


if (CEGUI_FOUND)
  message ("-- Looking for CEGUI - found")
elseif ()
  message ("-- Looking for CEGUI - not found")
endif()
  
